<?php  session_start();
/**
* @package		Parents@School
* @copyright	                Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		2.0
* @license		GNU/GPL, see LICENSE.php
**/
 
include ("include/config.php");
require_once ("include/db.php");


$username = $_SESSION['myusername'];
$klas = $_SESSION['klas'];

$sql="SELECT DISTINCT Leerkrachtnaam, Lokaal FROM $tbvak WHERE Klas='$klas' AND Klastitularis='Ja'";
//////////		
if ($result = mysqli_query($link, $sql)) 
		{
		echo "Klastitularis:<br/>";
    	/* fetch associative array */
   		 while ($row = mysqli_fetch_array($result)) 
		 {
        printf ("<em>%s (%s)<br/></em>", $row["Leerkrachtnaam"],$row["Lokaal"]);
    	}

    /* free result set */
    mysqli_free_result($result);
}

?>